split characters to list python

41

>>> s = "foobar"
>>> list(s)
['f', 'o', 'o', 'b', 'a', 'r']

Comments

Submit
0 Comments